var all = null;
if(!('WebSocket' in window)) {
    all = function() {
        alert("浏览器不支持本应用");
        return true;
    };
}
all && all();

function getSearchParam(key)
{
   var query = window.location.search.substring(1);
   var vars = query.split("&");
   for (var i=0;i<vars.length;i++) {
       var pair = vars[i].split("=");
       if(pair[0] == key){
           return pair[1];
       }
   }
   return "";
}